package com.remist.service.impl;

import com.remist.common.PaginationSupport;
import com.remist.dao.impl.MemberDao;
import com.remist.model.Member;
import com.remist.service.MemberService;

public class MemberServiceImpl implements MemberService {
	private MemberDao memberDao;
	public MemberDao getMemberDao() {
		return memberDao;
	}

	public void setMemberDao(MemberDao memberDao) {
		this.memberDao = memberDao;
	}

	@Override
	public void addMember(Member bean) {
		memberDao.addMember(bean);
	}

	public void updateMember(Member bean) {
		memberDao.updateMember(bean);
	}

	public void deleteMember(Member bean) {
		memberDao.deleteMember(bean);
	}

	public Member getMemberById(Member bean) {
		return memberDao.getMemberById(bean);
	}

	@Override
	public PaginationSupport getPaginationSupport(int pageSize, int startIndex) {
		return memberDao.getPaginationSupport(pageSize,startIndex);
	}

	@Override
	public Member checkEmailAndPassword(Member member) {
		return memberDao.checkEmailAndPassword(member);
	}

}
